package com.lbj.mall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbj.mall.common.entity.vo.GiteeVo;
import com.lbj.mall.common.utils.PageUtils;
import com.lbj.mall.member.entity.MemberEntity;
import com.lbj.mall.member.entity.vo.MemberLoginVo;
import com.lbj.mall.member.entity.vo.MemberRegisterVo;
import com.lbj.mall.member.exception.EmailExistException;
import com.lbj.mall.member.exception.UsernameExistException;

import java.util.Map;

/**
 * 会员
 *
 * @author libingjun
 * @email 617416791@qq.com
 * @date 2022-03-27 12:09:32
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo registerVo);

    void checkUsernameExist(String username) throws UsernameExistException;

    void checkEmailExist(String email) throws EmailExistException;

    MemberEntity login(MemberLoginVo loginVo);

    MemberEntity giteeLogin(GiteeVo giteeVo);
}

